package com.yan.yjhTest.designPattern.abstractFactory.demo1;

import com.yan.yjhTest.designPattern.abstractFactory.demo1.productA.AbstractProductA;
import com.yan.yjhTest.designPattern.abstractFactory.demo1.productA.ProductA1;
import com.yan.yjhTest.designPattern.abstractFactory.demo1.productB.AbstractProductB;
import com.yan.yjhTest.designPattern.abstractFactory.demo1.productB.ProductB1;

/**
 * 产品等级1的实现类
 * @author yan
 *
 */
public class Creator1 extends AbstractCreator{

	@Override
	public AbstractProductA createProductA() {
		//只生产产品等级为1的A产品
		return new ProductA1();
	}

	@Override
	public AbstractProductB createProductB() {
		//只生产产品等级为1的B产品
		return new ProductB1();
	}

}
